package com.minimalist.common.entity.basic.enums;


public class StorageEnum{

    /**
     * 存储处理异常信息
     */

    public enum ErrorMsg{
        NONENTITY_STORAGE("存储信息不存在");

        private final String desc;

        ErrorMsg(String desc){
            this.desc = desc;
        }

        public String getDesc(){
            return desc;
        }

    }

    /**
     * 存储类型
     */
    public enum StorageType{
        LOCAL("local", "本地"),
        MINIO("minio", "MinIO"),
        QINIU("qiniu", "七牛云");

        private final String code;

        private final String desc;

        StorageType(String code, String desc){
            this.code = code;
            this.desc = desc;
        }

        public String getCode(){
            return code;
        }

        public String getDesc(){
            return desc;
        }

    }

}
